package com.bicon.botu.mall.base.rpc;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.bicon.botu.core.base.common.Constants;
import com.bicon.botu.core.base.common.controller.BaseController;
import com.bicon.botu.core.base.common.entity.BaseResult;
import com.bicon.botu.mall.base.common.ValidationUtil;
import com.bicon.botu.mall.base.entity.DeliveryPoint;
import com.bicon.botu.mall.base.entity.LogisticsCompany;
import com.bicon.botu.mall.base.entity.MallConfig;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 物流公司RPC
 *
 * @author liushujie
 * @date 2018/5/8 0008 下午 16:05
 */
@CrossOrigin
@RestController
@RequestMapping("/V3.0.0/rpc/logistics-company")
public class LogisticsCompanyRpc extends BaseController {

    /**
     * 获取已启用的物流公司
     * @return
     */
    @RequestMapping(value = "/enabled-list", method = RequestMethod.GET)
    public BaseResult<DeliveryPoint> enabledList(@RequestParam String id) {
        LogisticsCompany logisticsCompany = new LogisticsCompany();
        logisticsCompany.setId(id);
        return sendResult200(logisticsCompany.selectById());
    }

}
